package com.it.travel01.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 收藏实体类
 */
@TableName("tab_favorite")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Builder
public class Favorite implements Serializable {
    private Integer rid;//旅游路线ID
    private Integer uid;//用户ID
	private Date date;//收藏时间
    @TableField(exist = false)
    private Route route;//旅游线路对象
    @TableField(exist = false)
    private User user;//所属用户

}
